import request from '@/utils/request'

// 查询基金收益列表
export function listFundIncome(query) {
  return request({
    url: '/income/fundIncome/list',
    method: 'get',
    params: query
  })
}

// 查询基金收益列表
export function getFundIncomeSum(query) {
  return request({
    url: '/income/fundIncome/getSum',
    method: 'get',
    params: query
  })
}

export function findListFundIncome(query) {
  return request({
    url: '/income/fundIncome/findList',
    method: 'get',
    params: query
  })
}

// 查询基金收益详细
export function getFundIncome(id) {
  return request({
    url: '/income/fundIncome/' + id,
    method: 'get'
  })
}

// 保存基金收益
export function saveFundIncome(data) {
  return request({
    url: '/income/fundIncome/save',
    method: 'post',
    data: data
  })
}

// 删除基金收益
export function delFundIncome(id) {
  return request({
    url: '/income/fundIncome/' + id,
    method: 'delete'
  })
}

// 导出基金收益
export function exportFundIncome(query) {
  return request({
    url: '/income/fundIncome/export',
    method: 'get',
    params: query
  })
}

// 获取基金为投资主体的项目
export function findDealBase(fundId) {
  return request({
    url: '/income/fundIncome/findDealBase/' + fundId,
    method: 'get'
  })
}

// 获取基金统计列表
export function getChartList(query) {
  return request({
    url: '/income/fundIncome/getChartList',
    method: 'get',
    params: query
  })
}

// 获取基金统计列表
export function getChartLists(query) {
  return request({
    url: '/income/fundIncome/getChartLists',
    method: 'get',
    params: query
  })
}
